package main

import (
	"fmt"
	"net/http"
)

func handler(writer http.ResponseWriter, request *http.Request) {
	fmt.Fprintf(writer, "hello word, % s!", request.URL.Path[1:])

}

func handlerHello(writer http.ResponseWriter, request *http.Request) {
	fmt.Fprintf(writer, "this is handler hello word % s!", request.URL.Path[1:])
}

func main() {
	http.HandleFunc("/", handler)
	http.HandleFunc("/hello", handlerHello)
	http.ListenAndServe(":9090", nil)
}
